package com.xbongbong.paas.model;

import com.xbongbong.paas.domain.entity.CoverPaasMenuEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;

public interface CoverPaasMenuModel extends IModel<CoverPaasMenuEntity> {


     /**
      * @description 保存
      * @author yanglei
      * @date 2022/11/29 17:18
      * @param entity
      */
     void save(CoverPaasMenuEntity entity);
     /**
      * @description 获取该公司下的所有移动过的菜单id
      * @author yanglei
      * @date 2022/11/29 17:17
      * @param corpid
      * @return List<CoverPaasMenuEntity>
      */
     List<CoverPaasMenuEntity> getList(String corpid);
     /**
      * @description 批量更新
      * @author yanglei
      * @date 2022/11/30 16:55
      * @param list
      * @param corpid
      * @return Integer
      */
     Integer updateBatch(List<CoverPaasMenuEntity> list,String corpid);
     /**
      * @description 批量插入
      * @author yanglei
      * @date 2022/11/30 16:55
      * @param list
      * @return Integer
      */
     Integer insertBatch(List<CoverPaasMenuEntity> list);

     /**
      * @description 批量删除(物理删除)
      * @author yanglei
      * @date 2022/11/30 16:55
      * @param menuIds
      * @param corpid
      * @return Integer
      */
     Integer deleteByMenuIds(List<Long> menuIds,String corpid);
}
